import request from '@/utils/request'

// 部门
export function listInfo() {
    return request({
        url: '/staff/staffData/psPersonDept',
        method: 'post'
    })
}

// 工种
export function getInfo() {
    return request({
        url: '/staff/staffData/ps_person_duty',
        method: 'post'
    })
}

// 人员报警历史列表
export function addInfo(query) {
    return request({
        url: '/staff/staffData/personHistoryAlarm',
        method: 'get',
        params: query
    })
}

// 弹框中实时轨迹列表
export function updateInfo(query) {
    return request({
        url: '/staff/staffData/selectTrack',
        method: 'get',
        params: query
    })
}

// 删除广播通讯
export function delInfo(id) {
    return request({
        url: '/GisTechnicalData/GisTechnicalData/' + id,
        method: 'delete'
    })
}

export function exportlist(query) {
    return request({
      url: '/staff/staffData/exportPersonHistoryAlarm',
      method: 'post',
        params: query,
       responseType:"blob",//设置响应数据类型为 blob
    })
  }
